package com.example.module.custom.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * @name BlockDemo
 * @class name：com.nand.module.function.bean
 * @classdescribe
 * @anthor ljp
 * @time 2020/1/9 15:13
 */
public  class PQCDetailsBean {
        /**
         * productID : 3
         * productionStage : 4
         * partId : Pack-004
         * reviewResult : 1
         * createdTime : 2020-01-08 17:17:33
         * oid : 3
         * userName : 头发
         * checkID : PQC_I123
         * processContent :
         * checkResult : 0
         * partName : Pack产品Ⅳ型
         */
        private String productID;//产品ID
        private int productionStage;//生产阶段 0电芯 1模组 2PACK
        private String partId;//物料编码
        private int reviewResult;//复查结果 0合格1不合格 2未复查
        private String createdTime;//创建时间
        private String oid;//pqc oid
        private String userName;//用户名称
        private String checkID;//检查单号,PQC单据
        private String processContent;//工序名称
        private int processOid;//工序标识
        private int checkResult;//检查结果 0合格1不合格
        private String partName;//物料名称
        private String materialName;//物料名称(根据在制品编码返回数据中)
         private String materialId;//物料编码(根据在制品编码返回数据中)
         private String materialOid;//物料标识(根据在制品编码返回数据中)
        private String wipBatch;//在制品编码
        private String equipId;//设备编码
        private int equipOid;//设备标识
        private String equipName;//设备名称
        private String productModel;// 产品型号
        private int checkType;//  检验类型0首检1巡检2自检3末捡
        private String binID;//料盒/夹具ID/载具编码
        private String  unqualiFiedHandle;// 不合格处理
        private int optimisticLockField;//互锁效验
        private List<DetailListBean> detailList;

    public int getOptimisticLockField() {
        return optimisticLockField;
    }

    public void setOptimisticLockField(int optimisticLockField) {
        this.optimisticLockField = optimisticLockField;
    }

    public String getWipBatch() {
            return wipBatch;
        }

    public int getEquipOid() {
        return equipOid;
    }

    public void setEquipOid(int equipOid) {
        this.equipOid = equipOid;
    }

    public int getProcessOid() {
        return processOid;
    }

    public void setProcessOid(int processOid) {
        this.processOid = processOid;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getMaterialOid() {
        return materialOid;
    }

    public void setMaterialOid(String materialOid) {
        this.materialOid = materialOid;
    }

    public void setWipBatch(String wipBatch) {
            this.wipBatch = wipBatch;
        }

        public String getProductID() {
            return productID;
        }

        public void setProductID(String productID) {
            this.productID = productID;
        }

        public int getProductionStage() {
            return productionStage;
        }
    private String productionStageName;//生产阶段 0电芯 1模组 2PACK

    public String getProductionStageName() {
        switch (productionStage){//生产阶段 0电芯 1模组 2PACK
            case 0:
                productionStageName = "电芯";
                break;
            case 1:
                productionStageName = "模组";
                break;
            case 2:
                productionStageName = "PACK";
                break;
        }
        return productionStageName;
    }

    public void setProductionStageName(String productionStageName) {
        this.productionStageName = productionStageName;
    }

    public String getEquipId() {
        return equipId;
    }

    public void setEquipId(String equipId) {
        this.equipId = equipId;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public int getCheckType() {
        return checkType;
    }

    public void setCheckType(int checkType) {
        this.checkType = checkType;
    }

    public String getBinID() {
        return binID;
    }

    public void setBinID(String binID) {
        this.binID = binID;
    }

    public String getUnqualiFiedHandle() {
        return unqualiFiedHandle;
    }

    public void setUnqualiFiedHandle(String unqualiFiedHandle) {
        this.unqualiFiedHandle = unqualiFiedHandle;
    }

    public void setProductionStage(int productionStage) {
            this.productionStage = productionStage;
        }

        public String getPartId() {
            return partId;
        }

        public void setPartId(String partId) {
            this.partId = partId;
        }

        public int getReviewResult() {
            return reviewResult;
        }

        public void setReviewResult(int reviewResult) {
            this.reviewResult = reviewResult;
        }

        public String getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(String createdTime) {
            this.createdTime = createdTime;
        }

        public String getOid() {
            return oid;
        }

        public void setOid(String oid) {
            this.oid = oid;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getCheckID() {
            return checkID;
        }

        public void setCheckID(String checkID) {
            this.checkID = checkID;
        }

        public String getProcessContent() {
            return processContent;
        }

        public void setProcessContent(String processContent) {
            this.processContent = processContent;
        }

        public int getCheckResult() {
            return checkResult;
        }

        public void setCheckResult(int checkResult) {
            this.checkResult = checkResult;
        }

        public String getPartName() {
            return partName;
        }

        public void setPartName(String partName) {
            this.partName = partName;
        }
    public List<DetailListBean> getDetailList() {
        return detailList;
    }

    public void setDetailList(List<DetailListBean> detailList) {
        this.detailList = detailList;
    }

    public static class DetailListBean {
        /**
         * result : 1
         * checkItem : 检查项1
         * checkContent : 检查内容1
         * checkValue : 10
         * tbOid : 1
         */

        private int result ;//结果0合格1不合格
        private String checkItem;//检验项
        private String checkContent;//检验内容
        private double checkValue;//检验值
        private String tbOid;//PQC检验明细 oid
        private String unqualiFiedDescribe;//不合格描述

        @Override
        public String toString() {
            return "DetailListBean{" +
                    "result=" + result +
                    ", checkItem='" + checkItem + '\'' +
                    ", checkContent='" + checkContent + '\'' +
                    ", checkValue=" + checkValue +
                    ", tbOid='" + tbOid + '\'' +
                    ", unqualiFiedDescribe='" + unqualiFiedDescribe + '\'' +
                    '}';
        }

        public void setUnqualiFiedDescribe(String unqualiFiedDescribe) {
            this.unqualiFiedDescribe = unqualiFiedDescribe;
        }

        public String getUnqualiFiedDescribe() {
            return unqualiFiedDescribe;
        }

        public int getResult() {
            return result;
        }

        public void setResult(int result) {
            this.result = result;
        }

        public String getCheckItem() {
            return checkItem;
        }

        public void setCheckItem(String checkItem) {
            this.checkItem = checkItem;
        }

        public String getCheckContent() {
            return checkContent;
        }

        public void setCheckContent(String checkContent) {
            this.checkContent = checkContent;
        }

        public double getCheckValue() {
            return checkValue;
        }

        public void setCheckValue(double checkValue) {
            this.checkValue = checkValue;
        }

        public String getTbOid() {
            return tbOid;
        }

        public void setTbOid(String tbOid) {
            this.tbOid = tbOid;
        }
    }
        @Override
        public String toString() {
            return "DataListBean{" +
                    "productID='" + productID + '\'' +
                    ", productionStage=" + productionStage +
                    ", partId='" + partId + '\'' +
                    ", reviewResult=" + reviewResult +
                    ", createdTime='" + createdTime + '\'' +
                    ", oid='" + oid + '\'' +
                    ", userName='" + userName + '\'' +
                    ", checkID='" + checkID + '\'' +
                    ", processContent='" + processContent + '\'' +
                    ", checkResult=" + checkResult +
                    ", partName='" + partName + '\'' +
                    '}';
        }

}
